package com.alibaba.controller;

import com.alibaba.dubbo.common.utils.StringUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by Administrator on 2017/11/9.
 */
@RequestMapping("/user")
@Controller
public class UserCasController {

    @RequestMapping("/login")
    @ResponseBody
    public String login(String username,String password){
        if("xwf".equals(username)&&"123".equals(password)){
            return "index.jsp";
        }
        return "用户名或者密码有错";
    }
}
